home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- set -e
-
- # Create /var/lib/computer-janitor if it doesn't exist and we're being
- # installed.
-
- case "$1" in
- configure)
- # Make sure we have a directory to put the state file in.
- [ -e /var/lib/computer-janitor ] || mkdir /var/lib/computer-janitor
-
- # If this system has or had system-cleaner installed, it might
- # have an old state file lying around. Let's copy that to the new
- # location, but only if there isn't one there already.
- for x in cruft-remover system-cleaner
- do
- if [ ! -e /var/lib/computer-janitor/state.dat ] &&
- [ -e /var/lib/$x/state.dat ]
- then
- cp /var/lib/$x/state.dat /var/lib/computer-janitor
- fi
- done
- ;;
- esac
-
-
- # Automatically added by dh_pycentral
- rm -f /var/lib/pycentral/computer-janitor.pkgremove
- if which pycentral >/dev/null 2>&1; then
- pycentral pkginstall computer-janitor
- if grep -qs '^computer-janitor$' /var/lib/pycentral/delayed-pkgs; then
- sed -i '/^computer-janitor$/d' /var/lib/pycentral/delayed-pkgs
- fi
- fi
- # End automatically added section
-
-